<template>
    <page>
        <pageHeader>影院</pageHeader>
        <div>电影院</div>
        <div>
            {{currentTime}}
        </div>
        <button type="button" @click="$router.push({name:'movieDetail'})">去详细信息</button>
        <hr>
        <view-content @longpress="m1" class="test">这是一个长按的测试</view-content>
    </page>
</template>

<script>
import pageHeader from "../components/PageHeader";
export default {
    name:"cinema",
    data(){
        return {
            currentTime:Date.now()
        }
    },  
    methods:{
        m1(event){
            console.log(Date.now());
            console.log(event);
        }
    },
    components:{
        pageHeader
    }
}
</script>

<style scoped lang="scss">
.test{
    height:200px;
    border:1px solid black;
}
</style>
